/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年2月12日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package strategy.test2;

/**
 * @Type WrongExample
 * @Desc
 * @author 52489
 * @date 2019年2月12日
 * @Version V1.0
 */
public class WrongExample {
    public double getPrice(String type, double Price) {
        if (type.equals("普通客户|小批量")) {
            System.out.println("不打折原价");
            return Price;
        } else if (type.equals("普通客户|大批量")) {
            System.out.println("打9折");
            return Price * 0.9;
        } else if (type.equals("vip客户|小批量")) {
            System.out.println("打8.5折");
            return Price * 0.85;
        } else if (type.equals("vip客户|大批量")) {
            System.out.println("打8折");
            return Price * 0.8;
        } else {
            return Price;
        }
    }
}
